<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon"	href="${basePath }static/img/HomePageImg/cat.jpg" />
<link rel="stylesheet" href="${basePath }static/css/HomePageCss/cool.css" />
<link rel="stylesheet" href="${basePath }static/css/HomePageCss/top.css" />
<link rel="stylesheet" href="${basePath }static/css/HomePageCss/model.css" />
<link rel="stylesheet" href="${basePath }static/css/HomePageCss/zq.css" />
<link rel="stylesheet" href="${basePath }static/css/HomePageCss/rightbar.css" />
<link rel="stylesheet" href="${basePath }static/css/HomePageCss/bottom.css" />
</head>


<body>
	<div class="top_box pinned">
		<div class="top_cont ">
			<div style="display: none;" id="userstatus">
				<div class="top_login_r top_red">
					<div class="top_login_title">
						<a href="${basePath }jump?pg=shoppingCar/shoppingcarMain" target="_blank">购物车</a> 
						<span id="top_cart_count">0</span>
					</div>

				</div>
				<ul class="top_login top_red">
					<li><a href="${basePath }jump?pg=userMessage/account" target="_blank">账户信息</a></li>
					<li><a href="${basePath }jump?pg=exit" target="_top">退出登录</a></li>
				</ul>
			</div>
			<ul class="top_login top_red">
				<li class="toindex"><a href="${basePath }jump?pg=main">联想商城首页</a></li>
				<li class="toindex" style="border-right: none; float: right;">
				<a	href="https://www.amap.com/search?query=%E8%81%94%E6%83%B3%E4%BD%93%E9%AA%8C%E5%BA%97&city=120000&geoobj=117.285074%7C39.062061%7C117.29458%7C39.065726&zoom=17">线下门店</a>
			</ul>
			<ul class="top_login top_red">
				<li class="toindex"><a href="#" onclick="ShowLogin()" id="userstatus2">登陆</a></li>
			</ul>
			
		</div>
	</div>

	


</body>
<script type="text/javascript" src="${basePath }static/js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="${basePath }static/js/HomePageJs/cold.js"></script>
<script type="text/javascript" src="${basePath }static/js/HomePageJs/jquery.pin.js"></script>
<script type="text/javascript" src="${basePath }static/js/HomePageJs/navAuto.js"></script>
<script type="text/javascript" src="${basePath }static/js/HomePageJs/registerImg.js"></script>
<script type="text/javascript" src="${basePath }static/js/HomePageJs/layer-v3.1.1/layer/layer.js"></script>

<script type="text/javascript">
		function ShowLogin() {
			layer.open({
				type: 2,
    			title: '登录',
    			maxmin: true,
    			area: ['800px', '600px'],
    			content: '${basePath }jump?pg=userlogin_1',
			});
		}
</script>

<script type="text/javascript">
	$(function(){
		var o=document.getElementById("NO");//获取父节点
		var a=document.getElementById("loginImg");//获取需要删除的子节
		//获取用户的登录账号（手机号）
		var $isLogin=<%=session.getAttribute("userTel")%>
		//判断是否登录
		if($isLogin == null ||  typeof($isLogin) == "undefined"|| $isLogin == ""){
			
		}else{
			
			o.removeChild(a); //从父节点o上面移除子节点a;
			$("#NO").html("<span ><%=session.getAttribute("userName")%></span>");
			document.getElementById("userstatus").style.display="";
			document.getElementById("userstatus2").style.display="none";
		}
	});

 
</script>
</html>